import request from '@/utils/request'

// 查询设计方案的细节图列表
export function listSchemDetail(query) {
  return request({
    url: '/decor/schemDetail/list',
    method: 'get',
    params: query
  })
}

// 查询设计方案的细节图详细
export function getSchemDetail(schemDetailId) {
  return request({
    url: '/decor/schemDetail/' + schemDetailId,
    method: 'get'
  })
}

// 新增设计方案的细节图
export function addSchemDetail(data) {
  return request({
    url: '/decor/schemDetail',
    method: 'post',
    data: data
  })
}

// 修改设计方案的细节图
export function updateSchemDetail(data) {
  return request({
    url: '/decor/schemDetail',
    method: 'put',
    data: data
  })
}

// 删除设计方案的细节图
export function delSchemDetail(schemDetailId) {
  return request({
    url: '/decor/schemDetail/' + schemDetailId,
    method: 'delete'
  })
}
